import request from '@/utils/requestcore'
//分页条件查询登录凭证信息
export function list(query) {
  return request({
    url: '/api/login_creds/list',
    method: 'post',
    data:query//请求体必须使用data
  })
}

export function get(id) {
  return request({
    url: '/api/login_creds/get',
    method: 'get',
    params: { id }
  })
}

export function del(id) {
  return request({
    url: `/api/login_creds/del/${id}`,  //必须用 `这个符号
    method: 'delete',
  })
}

export function create(data) {
  return request({
    url: '/api/login_creds/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/api/login_creds/edit',
    method: 'post',
    data
  })
}
